<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>薪金管理</title>
</head>
<body>


<div id="main" >

 <h3><s:if test="%{null==pay}"> 添加工资信息 </s:if>
 <s:else>修改工资信息  </s:else></h3>
 <p>
员工姓名：
<s:property value="pay.myeEmployee.name" />
</p>
<form action="salaryAction!save" method="POST">
  <table >
    <tr>
      <td ><input name="id"  type="hidden" value="<s:property value="pay.id" />"></td>
      </tr>
      <s:if test="%{null!=pay}">
          <tr>
           <td >工资信息ID</td>
      <td ><input name="pay.id"  type="text" value="<s:property value="pay.id" />"></td>
      </tr>
      </s:if>
       <tr>
           <td >员工ID</td>
      <td ><input name="pay.myeEmployee.id"  type="text" value="<s:property value="pay.myeEmployee.id" />"></td>
      </tr>
    <tr>
      <td >发放工资时间：</td>
      <td><input name="pay.time" type="text" value="<s:property value="pay.time" />"></td>
    </tr>
    <tr>
      <td >基本工资：</td>
      <td><input name="pay.basePay" type="text" value="<s:property value="pay.basePay" />"></td>
    </tr>
    <tr>
      <td >加班费：</td>
      <td><input name="pay.extraPay" type="text" value="<s:property value="pay.extraPay" />"></td>
    </tr>
    <tr>
      <td >工龄：</td>
      <td><input name="pay.workAge" type="text" value="<s:property value="pay.workAge" />"></td>
    </tr>
    <tr>
      <td >考勤费：</td>
      <td><input name="pay.attendPay" type="text" value="<s:property value="pay.attendPay" />"></td>
    </tr>
    <tr>
      <td >旷工费：</td>
      <td><input name="pay.absentPay" type="text" value="<s:property value="pay.absentPay" />"></td>
    </tr>
    <tr>
      <td >保险费：</td>
      <td><input name="pay.insurancePay" type="text" value="<s:property value="pay.insurancePay" />"></td>
    </tr>
    <tr>
      <td colspan="2"><input value="确定" type="submit"></td>
      </tr>
  </table>
</form>
</div>
</body>
</html>